package edu.nf.relaxenjoy.domain.dto;

import edu.nf.relaxenjoy.common.validator.group.DefaultGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @author zhu
 * @date 2024-12-19
 */
@Data
@ApiModel(value = "关注")
public class FollowDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户id")
    @NotNull(message = "uid不能为空", groups = DefaultGroup.class)
    private Long uid;

    @ApiModelProperty(value = "关注的用户id")
    @NotNull(message = "fid不能为空", groups = DefaultGroup.class)
    private Long fid;

    @ApiModelProperty(value = "关注的时间")
    private Date createTime;
}
